package cn.fuego.busrental.ui.Frament;


public class MainTabbarInfo
{
    private static Class fragments[] = {HomeFragment.class,UserFrament.class
    	
    	};  
    
    public static int getIndexByClass(Class clazz)
    {
    	for(int i=0;i<fragments.length;i++)
    	{
    		if(clazz == fragments[i])
    		{
    			return i;
    		}
    	}
    	return 0;
    }

	public static Class[] getFragments()
	{
		return fragments;
	}
}
